﻿<Window x:Class="RK.WpfModelViewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:gfx="http://www.rkoenig.eu/graphicsengine"
        Title="MainWindow" Height="350" Width="525"
        Icon="/Resources/Icon.ico">
    <DockPanel LastChildFill="True">
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="File">
                <MenuItem Header="Load model" Click="OnCmdLoadModelClick" />
                <MenuItem Header="Load model X" Click="OnCmdLoadModelFromX" />
                <Separator />
                <MenuItem Header="Close" Click="OnCmdCloseClick" />
                <Separator />
                <MenuItem Header="Save as xaml.." Click="OnCmdSaveAsXamlClick" />
                <Separator />
                <MenuItem Header="Exit" />
            </MenuItem>
        </Menu>
       
        <Grid>
            <gfx:WpfModelViewerControl Name="m_viewport3D"
                                       CameraDistance="5" 
                                       CameraHorizontalRotation="20" CameraVerticalRotation="20"
                                       ShowEditorGrid="True">
                <gfx:WpfModelViewerControl.Visual3DChildren>
                    <gfx:WpfCubeModel>
                        <!--<gfx:WpfCubeModel.Transform>
                            <RotateTransform3D ro
                        </gfx:WpfCubeModel.Transform>-->
                    </gfx:WpfCubeModel>
                </gfx:WpfModelViewerControl.Visual3DChildren>
            </gfx:WpfModelViewerControl>
        </Grid>
    </DockPanel>
</Window>
